package lab02.test11;

public class Rectangle extends Printx {
    double length = 2;
    double width = 3;
    double area(){
        return  length*width;
    }
    double perimeter(){
        return 2*length*2*width;
    }
    @Override
    public void printMyWay() {
        System.out.println("长：" + length + "宽" + width + "周长：" + perimeter() + "面积：" + area());

    }
}
